# the minimum version of CMake.
cmake_minimum_required(VERSION 3.5.0)
project(24_aki_promise_then_catch)

# 本例直接使用根目录源码作为依赖，实际工程使用时，需要`clone`源码到指定路径
set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../../)

include_directories(${NATIVERENDER_ROOT_PATH}
                    ${NATIVERENDER_ROOT_PATH}/include)

add_library(entry SHARED napi_init.cpp)

add_subdirectory(${NATIVERENDER_ROOT_PATH} aki)

target_link_libraries(entry PUBLIC
    aki_jsbind)